﻿using System;

namespace Framework.Domain
{
    public sealed class TaskListId : Identity<int>
    {
        public TaskListId() { }

        public TaskListId(int id) : base(id) { }

        public static implicit operator TaskListId(int id)
        {
            if (id < 0)
                throw new ArgumentOutOfRangeException("id", id, "ID out of range");
            return new TaskListId(id);
        }
    }
}